<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
		<li><a href="{:U('Customer/index')}">客户列表</a></li>
		<li><a href="{:U('Customer/add')}">添加客户</a></li>
		<li class="active"><a>客户概要</a></li>
		</ul>
		<div id="home_toptip"></div>
		<h4 class="well">基本信息</h4>
		<div class="home_info">
			<ul class="inline" style="margin-left: 25px;">
			    <li style="width:220px;">客户姓名：{$customer_info['customer_name']}</li>
			    <li style="width:220px;">联系电话：{$customer_info['mobile']}</li>	
		     	<li style="width:220px;">客户状态：{:getStatusValue('customer_status',$customer_info['status'])}</li>
		    </ul>
		</div>
		<h4 class="well">账户信息</h4>
		<div class="home_info">
			<ul class="inline" style="margin-left: 25px;">
			    <li style="width:220px;">账户余额：￥{:money_number_format($customer_info['money'])}</li>
			    <li style="width:220px;">最大充值金额：￥{:money_number_format($finance_info['big_recharge_money'])}</li>	
		     	<li style="width:220px;">合计充值金额：￥{:money_number_format($finance_info['sum_recharge_money'])}</li>
		    </ul>
		    <ul class="inline" style="margin-left: 25px;">
		        <li style="width:220px;">合计消费金额：￥{:money_number_format($finance_info['sum_charge_money'])}</li>
			    <li style="width:220px;">最后充值日期：{$finance_info['last_recharge_time']}</li>
			    <li style="width:220px;">最后消费日期：{$finance_info['last_charge_time']}</li>	
		    </ul>
		</div>
		<h4 class="well">充值与消费</h4>
		<div class="home_info" id="home_devteam">
		    <ul class="inline" style="margin-left: 25px;">
			    <li style="width:300px;text-align: center;">充值记录&nbsp;&nbsp;<a class="btn btn-danger" href="{:U('Finance/recharge',array('mobile'=>$customer_info['mobile']))}" target="_blank">快速充值</a></li>
			    <li style="width:120px;"></li>
			    <li style="width:350px;text-align: center;">消费记录</li>	
		    </ul>
			<ul class="inline">
				<li style="width:350px;text-align: center;height:200px">
				  <table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th style="width: 50%;">充值金额（￥）</th>
					<th style="width: 50%;">充值时间</th>
				</tr>
			</thead>
			<tbody>
			    <foreach name="recharge_list" item="vo">
				<tr>
				    <td style="text-align:right">{$vo.recharge_money}</td>
				    <td>{$vo['recharge_time'] || date='Y-m-d H:i:s',###}</td>
				</tr>
				</foreach>
			</tbody>
		</table></li>
		        <li style="width:100px;"></li>

				 </li>
				<li style="width:350px;text-align: center;height:200px">
                    <table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>消费金额（￥）</th>
					<th>消费时间</th>
				</tr>
			</thead>
			<tbody>
			    <foreach name="charge_list" item="vo">
				<tr>
				    <td style="text-align:right">{$vo.charge_money}</td>
				    <td>{$vo['charge_time'] || date='Y-m-d H:i:s',###}</td>
				</tr>
				</foreach>
				
			</tbody>
		</table>
				</li>
			</ul>
		</div>
	</div>
</body>
</html>